package com.ehome.poct.terminal.service;


import com.ehome.oss.config.OssClient;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author gyl
 * @since 2022/3/16 11:35
 **/
@Service
@AllArgsConstructor
public class FileUploadService {
    @Autowired private OssClient ossClient;


    public String uploadFile(MultipartFile file) {
        return ossClient.upload(file);
    }
}
